import request from '@/utils/request'

export function creatRecord(data) {
  return request({
    url: '/juanbusiness/product-set-meal/add',
    method: 'post',
    data
  })
}

export function findSetRecord(page,size,usingStatus) {
  return request({
    url: '/juanbusiness/product-set-meal/findPage',
    method: 'get',
    params: { page: page, size: size, usingStatus: usingStatus }
  })
}

export function listRecord() {
  return request({
    url: '/juanbusiness/product-set-meal/findList',
    method: 'get'
  })
}

export function menuRecord(data) {
  return request({
    url: '/juanbusiness/product-set-meal/findMenuList',
    method: 'get',
    data
  })
}

export function updateRecord(data) {
  return request({
    url: '/juanbusiness/product-set-meal/enable',
    method: 'put',
    data
  })
}

export function detailRecord(id) {
  return request({
    url: '/juanbusiness/product-set-meal/get',
    method: 'get',
    params: {id: id}
  })
}

export function delRecord(id) {
  return request({
    url: '/juanbusiness/product-set-meal/del',
    method: 'delete',
    params: {id: id}
  })
}
